package com.ztao.controller;

import com.heima.model.common.behavior.UnLikesBehaviorDto;
import com.heima.model.common.dtos.ResponseResult;
import com.ztao.service.ApUnlikesBehaviorService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/api/v1/un_likes_behavior")
public class ApUnlikesBehaviorController {
 
    @Resource
    private ApUnlikesBehaviorService apUnlikesBehaviorService;
 
    /**
     * 用户行为 - 不喜欢
     * @param dto
     * @return
     */
    @PostMapping
    public ResponseResult unlike(@RequestBody UnLikesBehaviorDto dto) {
        return apUnlikesBehaviorService.unlike(dto);
    }
}